#!/bin/sh

port=9001
homedir=/home/david/wda/test001/blog
/usr/bin/svn update $homedir
ps -aux | grep $port | grep -v "grep" | awk '{print $2}' | xargs kill
/usr/bin/python $homedir/manage.py runserver 127.0.0.1:$port >/dev/null 2>&1 &

exit 0

